<script>
import userPoint from "@/hooks/userPoint";

export default {
  name: 'test',
  setup() {
    let point = userPoint()
    return {
      point
    }
  }
}
</script>

<template>
  <hr>
  <h2>鼠标坐标为x:{{ point.x }}y:{{ point.y }}</h2>
</template>

<style scoped>

</style>